package com.yanqu.road.server.manger.config.grandchild.talent.entity;

import com.yanqu.road.entity.grandchild.GrandChildData;

public final class TalentConditionParamBuilder {
    private GrandChildData grandChild;
    private GrandChildTalentConditionParam condition;

    private TalentConditionParamBuilder() {
    }

    public static TalentConditionParamBuilder aTalentConditionParam() {
        return new TalentConditionParamBuilder();
    }

    public TalentConditionParamBuilder setGrandChild(GrandChildData grandChild) {
        this.grandChild = grandChild;
        return this;
    }

    public TalentConditionParamBuilder setCondition(GrandChildTalentConditionParam condition) {
        this.condition = condition;
        return this;
    }

    public TalentConditionParam build() {
        TalentConditionParam talentConditionParam = new TalentConditionParam();
        talentConditionParam.setGrandChild(grandChild);
        talentConditionParam.setCondition(condition);
        return talentConditionParam;
    }
}
